package com.ruicar.afs.cloud.common.modules.apply.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * @author: Lee
 * @date 2020-06-01 06:24:24
 * @description 部门DTO
 */
@Data
public class DepartmentDTO {
    /**
     * 部门id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 渠道代码
     */
    private String channelId;
    /**
     * 部门名称
     */
    private String title;
    /**
     * 上级id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;
    /**
     * 是否是父节点
     */
    private Boolean isParent = false;
    /**
     * 排序序号
     */
    private Double sortOrder;
}
